package cn.ren.util;

/**
 * @program: itcast_health
 * @description:
 * @author: ren
 * @create: 2020-02-23 14:45
 **/
public class Demo {
    public static void main(String[] args) {
        String str = "abc.jgp";
        int a = str.lastIndexOf(".");
        System.out.println(a);
        String b = str.substring(a);
        System.out.println(b);
    }
}
